package com.wealth.payment.enums;

public enum PaymentTypeEnum {
	
	//cash on delivery (COD)
	//ALL(1,"不限方式"),COD(2,"货到付款"),ALIPAY(3,"支付宝"),WEIXIN(4,"微信");
	ALIPAY(1,"支付宝"),WECHAT(2,"微信"),COD(3,"货到付款");
	
	private int value;
	private String comment;
	private PaymentTypeEnum(int value,String comment){
		this.value = value;
		this.comment =comment;
	}
	
	public int getValue(){
		return value;
		
	}
	public String getComment(){
		return comment;
	}
	public static PaymentTypeEnum get(int value){
		for (PaymentTypeEnum o:PaymentTypeEnum.values()) {
			if(o.value ==value){
				return o;
			}
		}
		return null;
	}
	
}
